package com.cn.wanxi.test;

/**
 * 动态数组
 */
public class ArrayTrends {
    public static void main(String[] args) {
//        int[][] arr = new int[11][10];
//        int[] arr= new int[1];
//        System.out.println(arr[2]);
//        char[] arr=new char[10];
//        System.out.println(arr);
//        boolean [] arr=new boolean[10];
//        ITest[] iTests={};
//        System.out.println(iTests);
//        {1,2,3}
        int[] arr = new int[10];
        arr[0] = 11;
        arr[2] = 121;
        arr[5] = 141;
//        System.out.print("{");
        String str="{";
        for (int i = 0; i < arr.length; i++) {
            if (i == arr.length - 1) {
//                System.out.print(arr[i]);
                str+=arr[i];
            } else {
                str+=arr[i]+",";
//                System.out.print(arr[i] + ",");
            }

        }
        str+="}";
        System.out.println(str);
    }
}
